package com.yehun.dao.impl;

import com.yehun.dao.TestDao;
import com.yehun.entity.Test;
import com.yehun.mapper.TestMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class TestDaoImpl implements TestDao {

    @Resource
    private TestMapper testMapper;

    @Override
    public List<Test> list() {
        return testMapper.list();
    }

    @Override
    public Test get(int id) {
        return testMapper.get(id);
    }

    @Override
    public int save(Test test) {
        return testMapper.save(test);
    }

    @Override
    public int update(Test test) {
        return testMapper.update(test);
    }

    @Override
    public int remove(int[] ids) {
        return testMapper.remove(ids);
    }
}
